home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_procmail.idb / usr / freeware / lib / procmail / 2procmailrc.z / 2procmailrc
Encoding:
Text File  |  1998-10-28  |  1.9 KB  |  65 lines

  1. # Please check if all the paths in PATH are reachable, remove the ones that
  2. # are not.
  3.  
  4. PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
  5. MAILDIR=$HOME/Mail    # You'd better make sure it exists
  6. DEFAULT=$MAILDIR/mbox
  7.             # We don't use a global lockfile here now.
  8.             # Instead we use local lockfiles everywhere.
  9.             # This allows mail to arrive in all mailboxes
  10.             # concurrently, or allows you to read one mailbox
  11.             # while mail arrives in another.
  12.  
  13. # The next recipe will split up Digests into their individual messages.
  14. # Don't do this if you use a global lockfile before this recipe (deadlock)
  15.  
  16. :0
  17. * ^Subject:.*Digest
  18. |formail +1 -d -s procmail
  19.  
  20. LOGFILE=$MAILDIR/from        # Put it here, in order to avoid logging
  21.                 # the arrival of the digest.
  22.  
  23. # An alternative and probably more efficient solution to splitting up a digest
  24. # would be (only works for standard format mailbox files though):
  25.  
  26. :0:
  27. * ^Subject:.*Other Digest
  28. |formail +1 -ds cat >>this_lists_mailbox
  29.  
  30. # Notice the double : in the next recipe, this will cause a lockfile
  31. # named "$MAILDIR/todd.lock" to be used if and only if this mail is going
  32. # into the file "todd".
  33.  
  34. :0:                # Anything from thf
  35. * ^From.*thf@somewhere.someplace
  36. todd                # will go to $MAILDIR/todd
  37.  
  38.  
  39. # The next recipe will likewise use $MAILDIR/uunetbox.lock as a lock file.
  40.  
  41. :0:                # Anything from people at uunet
  42. * ^From.*@uunet
  43. uunetbox            # will go to $MAILDIR/uunetbox
  44.  
  45.  
  46. # And here the lockfile will be $MAILDIR/henries.lock of course.
  47.  
  48. :0:                # Anything from Henry
  49. * ^From.*henry
  50. henries                # will go to $MAILDIR/henries
  51.  
  52.  
  53. # But you can specify any lockfile you want, like "myfile".  The following
  54. # recipe will use "$MAILDIR/myfile" as the lock file.
  55.  
  56. :0:myfile            # All 'questions' will go to
  57. * ^Subject:.*questions
  58. toread                # $MAILDIR/toread
  59.  
  60. # Anything that has not been delivered by now will go to $DEFAULT
  61.  
  62. # After procmail sees the end of the rcfile, it pretends that it sees a
  63. # LOCKFILE=$DEFAULT$LOCKEXT
  64. # Therefore $DEFAULT is always locked.
  65.